package com.itheima.client;

import com.itheima.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Author liuqiang
 * @Date 2024/3/15
 * @Description Feign配置服务接口
 */
@FeignClient(value = "itheima-user")
public interface UserClient {

	@GetMapping(value = "/user/{id}")
	User one(@PathVariable(value = "id") Long id);
}
